package com.csdj.article.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 评论表(问题和文章)
 * </p>
 *
 * @author Hh
 * @since 2022-03-07
 */
@Data
@TableName("attques_comment")
public class AttquesComment implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 表Id
     */
    @TableId(value = "Id", type = IdType.AUTO)
    private Long id;

    /**
     * 问题Id
     */
    private String quesId;

    /**
     * 评论id
     */
    private Long attquesCommentId;

    /**
     * 文章id
     */
    private Long articleId;

    /**
     * 评论人Id
     */
    private Integer commentatorId;

    /**
     * 评论内容
     */
    private String commentContent;

    /**
     * 赞次数
     */
    private Integer praiseNumb;

    /**
     * 评论时间
     */
    private LocalDate createTime;

    /**
     * 评论类型，0是问题，1是文章
     */
    private Boolean commentType;

}
